import { getBanner } from '@/api/home'
import { ref } from 'vue'

// banner
function useBanner () {
  // banner区域
  const bannerList = ref([])
  async function loadBanner () {
    const { result } = await getBanner()
    bannerList.value = result
  }

  loadBanner()

  return {
    bannerList
  }
}

export default useBanner
